<?php


namespace app\apiv1\controller;


class Test extends Base
{
    public function getLocation(){
        $user['lat'] = 34.79441;
        $user['lng'] = 113.690895;
        $shop['lat'] = 34.812535;
        $shop['lng'] = 113.675022;
        $distance = round($this->distance($user['lat'],$user['lng'],$shop['lat'],$shop['lng']),2);
        dump($distance);
    }
}